﻿using System;
using System.Runtime.InteropServices;
using Ast.Core.WinApi;

namespace Ast.Core.Services.ObjectDefinitions
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
    public struct ObjectHeaderCreatorInfo : ISpecificObjectHeaderInfo
    {
        public Structure.ListEntry TypeList; // +0x000 TypeList         : _LIST_ENTRY

        public IntPtr CreatorUniqueProcess; // +0x008 CreatorUniqueProcess : Ptr32 Void

        public short CreatorBackTraceIndex; // +0x00c CreatorBackTraceIndex : Uint2B

        public short Reserved; // +0x00e Reserved         : Uint2B

        public InfoMaskType Type
        {
            get { return InfoMaskType.CreatorInfo; }
        }
    }
}